package net.ericaro.neojavagen.classes;

/**
 * <b>FieldDeclaration</b> ::= <{@link net .ericaro .neojavagen .packages .JavadocComment JavadocComment}>? <
 * {@link net .ericaro .neojavagen .interfaces .Annotations Annotations}>? <{@link java .util .EnumSet <net .ericaro .neojavagen .classes .FieldModifier >
 * EnumSet}> <{@link net .ericaro .neojavagen .types .Type Type}> <{@link net .ericaro .neojavagen .classes .VariableDeclarators VariableDeclarators}> ";"
 * 
 * @author eric@ericaro.net
 */
public class FieldDeclaration extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.classes.ClassBodyDeclaration {
	private net.ericaro.neojavagen.interfaces.Annotations annotations;

	private java.util.EnumSet<net.ericaro.neojavagen.classes.FieldModifier> enumSet;

	private net.ericaro.neojavagen.packages.JavadocComment javadocComment;

	private net.ericaro.neojavagen.types.Type type;

	private net.ericaro.neojavagen.classes.VariableDeclarators variableDeclarators;

	public FieldDeclaration(java.util.EnumSet<net.ericaro.neojavagen.classes.FieldModifier> enumSet, net.ericaro.neojavagen.types.Type type, net.ericaro.neojavagen.classes.VariableDeclarators variableDeclarators) {
		this.javadocComment = null;
		this.annotations = null;
		this.enumSet = enumSet;
		this.type = type;
		this.variableDeclarators = variableDeclarators;
	}

	public FieldDeclaration(net.ericaro.neojavagen.packages.JavadocComment javadocComment, net.ericaro.neojavagen.interfaces.Annotations annotations, java.util.EnumSet<net.ericaro.neojavagen.classes.FieldModifier> enumSet, net.ericaro.neojavagen.types.Type type, net.ericaro.neojavagen.classes.VariableDeclarators variableDeclarators) {
		super();
		this.javadocComment = javadocComment;
		this.annotations = annotations;
		this.enumSet = enumSet;
		this.type = type;
		this.variableDeclarators = variableDeclarators;
	}

	public net.ericaro.neojavagen.interfaces.Annotations getAnnotations() {
		return annotations;
	}

	public java.util.EnumSet<net.ericaro.neojavagen.classes.FieldModifier> getEnumSet() {
		return enumSet;
	}

	public net.ericaro.neojavagen.packages.JavadocComment getJavadocComment() {
		return javadocComment;
	}

	public net.ericaro.neojavagen.types.Type getType() {
		return type;
	}

	public net.ericaro.neojavagen.classes.VariableDeclarators getVariableDeclarators() {
		return variableDeclarators;
	}

	public void setAnnotations(net.ericaro.neojavagen.interfaces.Annotations annotations) {
		this.annotations = annotations;
	}

	public void setEnumSet(java.util.EnumSet<net.ericaro.neojavagen.classes.FieldModifier> enumSet) {
		this.enumSet = enumSet;
	}

	public void setJavadocComment(net.ericaro.neojavagen.packages.JavadocComment javadocComment) {
		this.javadocComment = javadocComment;
	}

	public void setType(net.ericaro.neojavagen.types.Type type) {
		this.type = type;
	}

	public void setVariableDeclarators(net.ericaro.neojavagen.classes.VariableDeclarators variableDeclarators) {
		this.variableDeclarators = variableDeclarators;
	}

	@Override
	public java.lang.String toString() {
		return print(javadocComment, annotations, enumSet, type, variableDeclarators, ";");
	}
}
